home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 75 / XENIATGM75.iso / Shareware / X-Setup 5.0 / _SETUP.1 / XQ Network Server 1.xpl < prev    next >
Text File  |  1999-06-12  |  2KB  |  66 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 5.0"
  2. "TYPE"="6"
  3. "COUNT"="2"
  4. "UIPATH"="Network\Server"
  5. "NAME"="Server Options"
  6. "VERSION"="1.31"
  7. "LANGUAGE"="VBScript"
  8. "TEXT 1"="Hide this computer"
  9. "TEXT 2"="Allow long share names"
  10. "DESCRIPTION 1"="If you do not want that this computer can been seen on the network, activate the first option."
  11. "DESCRIPTION 2"="The computer can still be reached and accessed, it's just no longer visible for other computers using the browser service."
  12. "DESCRIPTION 3"=" "
  13. "DESCRIPTION 4"="By default, Windows NT cannot use shares that contain more than 12 characters. By activating the second option, you can enable this."
  14. "DESCRIPTION 5"="Please note that you need at least NT SP3 for this!!"
  15. "AUTHOR"="Xteq Systems"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="For more information, go to http://www.xteq.com or write to TeXHeX@gmx.net."
  18. "COMMENT 2"="Setting #2: MS KB Q169049"
  19.  
  20.  
  21. sP2="HKLM\System\CurrentControlSet\Services\Rdr\Parameters\"
  22. sV2="AllowLongShareName"
  23. Sub Plugin_Initialize 
  24.  If GetWinVer=2 then
  25.     If RegPathExists("HKLM\System\CurrentControlSet\Services\LanmanServer") then
  26.        i=RegReadValue("HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Hidden")
  27.        if i=1 then
  28.           Call SetUIElement(1,true)
  29.        end if
  30.     end if
  31.  
  32.     i=RegReadValue(sP2 & sV2)
  33.     if i=1 then SetUiElement 2,true 
  34.  
  35.     
  36.  else
  37.   Disable
  38.  end if
  39. End Sub
  40.  
  41. Sub Plugin_CheckData(ElementIndex)
  42. End Sub
  43.  
  44. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  45.  If GetUIElement(1)=true then
  46.     Call RegWriteValue("HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Hidden",1,2)
  47.  else
  48.     Call RegWriteValue("HKLM\System\CurrentControlSet\Services\LanmanServer\Parameters\Hidden",0,2)
  49.  end if
  50.  
  51.  If GetUIElement(2)=true then
  52.     Call RegWriteValue(sp2 & sv2,"1",2)
  53.  else
  54.     Call RegWriteValue(sp2 & sv2,"0",2)
  55.  end if
  56.  
  57.  Restart
  58. End Sub
  59.  
  60.  
  61. Sub Plugin_Terminate 
  62. End Sub
  63.  
  64.  
  65.  
  66.